<?php
$pageTitle = 'Parcourir par mots clés';
head(array('title'=>$pageTitle,'bodyid'=>'items','bodyclass'=>'tags'));
?>

<div id="secondary">
	<?php echo secondary_poincare();?>
</div>

<div id="primary">
    <h1><?php echo $pageTitle; ?></h1>
    <p id="tags-nav"><?php echo __('Sort by'); ?>:
        <?php
        $sortOptions = array(
            'alpha' => __('Alphabetical'),
            'most' => __('Most'),
            'least' => __('Least'),
            'recent' => __('Recent')
        );
        foreach ($sortOptions as $key => $label) {
            $uri = html_escape(current_uri(array('sort' => $key)));
            $class = ($_GET['sort'] == $key) ? ' class="current"' : '';
            echo "<a href=\"$uri\"$class>$label</a>";
        }
        ?>
    </p>
    <?php echo tag_cloud($tags,uri('items/browse')); ?>
</div><!-- end primary -->

<?php foot(); ?>
